﻿using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;

namespace SOAPServicios.Dominio
{
    [DataContract]
    public class Usuario
    {
            [DataMember]
            public int IdUsuario { get; set; }

            [DataMember]
            [StringLength(50), Required]
            public string DeNombre { get; set; }

            [DataMember]
            [StringLength(50), Required]
            public string DeApellido { get; set; }

            [DataMember]
            [StringLength(12), Required(ErrorMessage="Por favor ingrese Numero de Documento (DNI)")]
            public string NuDocumento { get; set; }

            [DataMember]
            [StringLength(50), Required]
            public string DeDireccion { get; set; }

            [DataMember]
            [StringLength(50), Required]
            public string DeDistrito { get; set; }

            [DataMember]
            [Email, Required]
            public string DeCorreo { get; set; }

            [DataMember]
            public string DeSituacion { get; set; }
    }
}